//
//  SHD_SearContectTableCell.m
//  B段项目
//
//  Created by dllo on 15/11/11.
//  Copyright © 2015年 谢美娜. All rights reserved.
//

#import "SHD_SearContectTableCell.h"

@implementation SHD_SearContectTableCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _titleLabel = [[myTitleLabel alloc]init];
        [self.contentView addSubview:_titleLabel];
        _contectLabel = [[myContectLabel alloc]init];
        [self.contentView addSubview:_contectLabel];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _titleLabel.frame = CGRectMake(15 * FitWidth, 15 * FitHeight, 345 * FitWidth, 50);
    _contectLabel.frame = CGRectMake(15 * FitWidth, _titleLabel.frame.origin.y + _titleLabel.frame.size.height + 15 * FitHeight, 345 * FitWidth, 70 * FitHeight);
    _titleLabel.numberOfLines = 0;
    _contectLabel.numberOfLines = 0;
}
-(void)setList:(SHD_SearchContectList *)list
{
    _list = list;
    _titleLabel.text = list.title;
    _contectLabel.text = list.shortcontent;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
